<?php
/* @var $this UnitOfMeasuresController */
/* @var $model UnitOfMeasures */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'unit-of-measures-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'unit_code'); ?>
		<?php echo $form->textField($model,'unit_code',array('size'=>60,'maxlength'=>255,'class'=>'span3',)); ?>
		<?php echo $form->error($model,'unit_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>-1,'maxlength'=>-1,'class'=>'span3',)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',  
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
              <?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'reset',
                        'icon'=>'remove',  
			'label'=>'Reset',
		)); ?>
	</div>


<?php $this->endWidget(); ?>

</div><!-- form -->